package com.guangyunl.c_switch;

import java.util.Scanner;

public class Demo01Switch {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个整数: ");
        int data = sc.nextInt();
        switch (data){
            case 1:
                System.out.println("输入的数字为: 一");
                break;
            case 2:
                System.out.println("输入的数字为: 二");
                break;
            case 3:
                System.out.println("输入的数字为: 三");
                break;
            default:
                System.out.println("输入的数字为: " + data);
                break;
        }
    }
}
